package com.lightboat.system.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lightboat.system.domain.CrmAfterSale;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 售后Mapper接口
 * 
 * @author lightboat
 * @date 2025-09-09
 */
@Mapper
@Repository
public interface CrmAfterSaleMapper extends BaseMapper<CrmAfterSale>{

    /**
     * 查询售后列表
     * 
     * @param crmAfterSale 售后
     * @return 售后集合
     */
    public List<CrmAfterSale> selectCrmAfterSaleList(CrmAfterSale crmAfterSale);

    /**
     * 删除售后
     * 
     * @param afterSaleId 售后主键
     * @return 结果
     */
    public int deleteCrmAfterSaleByAfterSaleId(Long afterSaleId);

    /**
     * 批量删除售后
     * 
     * @param afterSaleIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteCrmAfterSaleByAfterSaleIds(Long[] afterSaleIds);
}
